package com.tensquare.auth.client;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.tensquare.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * Created by WF on 2021/9/2 17:03
 */
@FeignClient("tensquare-user")
@RequestMapping("/user")
public interface UserClient {

    @PostMapping("/insert")
    AjaxResult insert(@RequestBody User user);

    @GetMapping("/findByUid/{uid}")
    User findByUid(@PathVariable("uid") String uid);

    @PutMapping("/update")
    AjaxResult update(@RequestBody User user);
}
